<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<h1><fmt:message key="person.search.title"/></h1>

<c:set var="overall_target" key="monthly.target.overall"/>

<table class="search">
    <tr>
        <th>Metrics</th>
        <th>Target</th>
        <th>Jan</th>
        <th>Feb</th>
        <th>Mar</th>
        <th>Apr</th>
        <th>May</th>
        <th>Jun</th>
        <th>Jul</th>
        <th>Aug</th>
        <th>Sep</th>
        <th>Oct</th>
        <th>Nov</th>
        <th>Dec</th>
    </tr>
    
    <!--  Overall -->
    <tr>
    	<td>Overall</td>
    	<td> &lt; <fmt:message key="monthly.target.overall"/></td>

		<c:forEach var="metric" items="${montly.overall}" varStatus="status">
	    	<td>
			  	 <c:if test="${metric lt overall_target}">
			        class="red"
			      </c:if>
	            <a href='order/monthly/overall/${status.count}'>${metric}</a>
	        </td>		
		</c:forEach>    	
    </tr>

</table>